﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using Frogism.Core;
using Frogism.Data;

namespace Frogism.Domain {
 public class AuthorManager : ManagerBase<Author,IAuthor>, Frogism.Core.IAuthorManager{
    private AuthorLoader _Loader;
    public override ILoader<Author,IAuthor> Loader {
      get {
        if(_Loader == null) {
          _Loader = new AuthorLoader();
        }
        return _Loader;
      }
    }
    public IAuthor Insert(Author a) {
      AuthorLoader b = new AuthorLoader();
     
        return b.CreateAndGet(a);
     
    }
  }
}
